-- GENERATED SPELL FOR [Sunfury Bloodwarder] --


function spell0_18853(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_18853', 588, 1)
end

function spell1_18853(pUnit, Event) --@Mark of the Sunfury,n/a--
pUnit:FullCastSpellOnTarget(35877,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18853', 20284, 1)
end

function Sorts_18853(pUnit, Event)
local choix_sorts_18853 = math.random(0, 1)
if choix_sorts_18853 == 0 then
pUnit:RegisterEvent('spell0_18853', 1, 1)
end
if choix_sorts_18853 == 1 then
pUnit:RegisterEvent('spell1_18853', 1, 1)
end
end

function mob18853_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18853', math.random(1500, 3000), 1)
end

function mob18853_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18853_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18853_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18853, 1, 'mob18853_Action')
RegisterUnitEvent(18853, 2, 'mob18853_Leave')
RegisterUnitEvent(18853, 3, 'mob18853_Kill')
RegisterUnitEvent(18853, 4, 'mob18853_Die')
